package cn.lyh.gulimall.ware.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */
/**
    * 库存工作单
    */
@Data
@TableName(value = "wms_ware_order_task_detail")
public class WmsWareOrderTaskDetail {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * sku_id
     */
    @TableField(value = "sku_id")
    private Long skuId;

    /**
     * sku_name
     */
    @TableField(value = "sku_name")
    private String skuName;

    /**
     * 购买个数
     */
    @TableField(value = "sku_num")
    private Integer skuNum;

    /**
     * 工作单id
     */
    @TableField(value = "task_id")
    private Long taskId;

    /**
     * 仓库id
     */
    @TableField(value = "ware_id")
    private Long wareId;

    /**
     * 1-已锁定  2-已解锁  3-扣减
     */
    @TableField(value = "lock_status")
    private Integer lockStatus;

    public static final String COL_ID = "id";

    public static final String COL_SKU_ID = "sku_id";

    public static final String COL_SKU_NAME = "sku_name";

    public static final String COL_SKU_NUM = "sku_num";

    public static final String COL_TASK_ID = "task_id";

    public static final String COL_WARE_ID = "ware_id";

    public static final String COL_LOCK_STATUS = "lock_status";
}